<?php
$CI =& get_instance();
$module = $CI->router->class;  
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $page_title ?></title>
	
    <link rel="stylesheet" type="text/css" href="<?php echo $static_url ?>style/reset.css" /> 
    <link rel="stylesheet" type="text/css" href="<?php echo $static_url ?>style/root.css" /> 
    <link rel="stylesheet" type="text/css" href="<?php echo $static_url ?>style/grid.css" /> 
    <link rel="stylesheet" type="text/css" href="<?php echo $static_url ?>style/typography.css" /> 
    <link rel="stylesheet" type="text/css" href="<?php echo $static_url ?>style/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $static_url ?>style/jquery-plugin-base.css" />
    
    <!--[if IE 7]>	  <link rel="stylesheet" type="text/css" href="<?php echo $static_url ?>style/ie7-style.css" />	<![endif]-->
    
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery-ui-1.8.11.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery-settings.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/toogle.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.tipsy.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.uniform.min.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.wysiwyg.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.tablesorter.min.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/raphael.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/analytics.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/popup.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/fullcalendar.min.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.prettyPhoto.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.ui.core.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.ui.mouse.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.ui.slider.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.ui.datepicker.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.ui.tabs.js"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.ui.accordion.js"></script>
	<script type="text/javascript" src="https://www.google.com/jsapi"></script>
	<script type="text/javascript" src="<?php echo $static_url ?>js/jquery.dataTables.js"></script>
      <style>#stats{display:block;}</style>          
    
</head>
<body>


<div class="wrapper">




	<!-- START HEADER -->
    <div id="header">
    
    
    	<!-- logo -->
    	<div class="logo">	<a href="index.html"><img src="<?php echo $static_url ?>img/logo.png" width="112" height="35" alt="logo"/></a>	</div>
        
        
        <!-- notifications -->
        <div id="notifications">        	
          <div class="clear"></div>
        </div>        
        
                
        <!-- profile box -->
        <div id="profilebox">
        	<a href="#" class="display">
            	<img src="<?php echo $static_url ?>img/simple-profile-img.jpg" width="33" height="33" alt="profile"/>	<b>Logged in as</b>	<span><?php echo $currentUser ?></span>
            </a>
            
            <div class="profilemenu">
            	<ul>
                	<li><a href="<?php echo $base_url; ?>/useraz/settings">Account Settings</a></li>
                	<li><a href="<?php echo $base_url; ?>/useraz/logout">Logout</a></li>
                </ul>
            </div>
            
        </div>
        
        
        <div class="clear"></div>
    </div>
    <!-- END HEADER -->
    
    
    
    
    
    
    
    
    
    <!-- START MAIN -->
    <div id="main">
    
		
        
        
        
        <!-- START SIDEBAR -->
        <div id="sidebar">
        	
            <!-- start searchbox -->
            <div id="searchbox">
            	<div class="in">
               	  <form id="form1" name="form1" method="get" action="<?php echo $base_url ?>/<?php echo $module?>">
                  	<input name="s" type="text" class="input" id="textfield" onfocus="$(this).attr('class','input-hover')" onblur="$(this).attr('class','input')" title="Find"  />
               	  </form>
            	</div>
            </div>
            <!-- end searchbox -->
            
            <!-- start sidemenu -->
            <div id="sidemenu">
            	<ul>
                	<li<?php if($module == 'home') echo ' class="active"'; ?>><a href="<?php echo $base_url ?>/home"><img src="<?php echo $static_url ?>img/icons/sidemenu/laptop.png" width="16" height="16" alt="icon"/>Trang chủ</a></li>
                    <li<?php if($module == 'useraz') echo ' class="active"'; ?>><a href="<?php echo $base_url ?>/useraz"><img src="<?php echo $static_url ?>img/icons/sidemenu/user.png" width="16" height="16" alt="icon"/>Người dùng</a></li>
                    <li<?php if($module == 'biquyet') echo ' class="active"'; ?>><a href="<?php echo $base_url ?>/biquyet"><img src="<?php echo $static_url ?>img/icons/sidemenu/user.png" width="16" height="16" alt="icon"/>Bí Quyết</a></li>   
                    <li<?php if($module == 'dapan') echo ' class="active"'; ?>><a href="<?php echo $base_url ?>/dapan"><img src="<?php echo $static_url ?>img/icons/sidemenu/user.png" width="16" height="16" alt="icon"/>Đề Thi - Đáp Án</a></li>        
                    <li<?php if($module == 'tilechoi') echo ' class="active"'; ?>><a href="<?php echo $base_url ?>/tilechoi"><img src="<?php echo $static_url ?>img/icons/sidemenu/user.png" width="16" height="16" alt="icon"/>Tỷ Lệ Chọi</a></li>                   
                    <li<?php if($module == 'diemchuan') echo ' class="active"'; ?>><a href="<?php echo $base_url ?>/diemchuan"><img src="<?php echo $static_url ?>img/icons/sidemenu/user.png" width="16" height="16" alt="icon"/>Điểm Chuẩn</a></li>    
                </ul>
            </div>
            <!-- end sidemenu -->
            
        </div>
        <!-- END SIDEBAR -->
		<?php echo $page_content; ?>
    <div class="clear"></div>
    </div>
    <!-- END MAIN -->

    
    <!-- START FOOTER -->
    <div id="footer">
    	<div class="left-column">?Copyright 2012 - All rights reserved.</div>
        <div class="right-column">Cupcake theme by <a href="http://themeforest.net/user/egemem" target="_blank">egemem</a></div>
    </div>
    <!-- END FOOTER -->

</div>
</body>
</html>